package com.springboot.service;

import com.springboot.entity.Admin;
import com.springboot.entity.Minutes;
import com.springboot.mapper.AdminMapper;
import com.springboot.mapper.MinutesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author eternalSy
 * @version 1.0.0
 */

@Service
public class MinutesService {
    @Autowired
    private MinutesMapper minutesMapperImpl;


    /**
     * 根据adminName获取admin对象
     * */
    public Minutes getMinutesById(Integer minutesId){
        return minutesMapperImpl.getMinutesById(minutesId);
    }

    /**
     * 获取所有admin
     * */
    public List<Object> getAllMinutes(){
        return minutesMapperImpl.getAllMinutes();
    }


    /**
     * 更新Admin
     * */
    public Integer updateMinutes(Minutes minutes){
        return minutesMapperImpl.updateMinutes(minutes);
    }

    /**
     * 更新Admin
     * */
    public Integer insertMinutes(Minutes minutes){
        return minutesMapperImpl.insertMinutes(minutes);
    }


}
